package com.greenline.push.service.core.exception;

/**
 * 
 * @Type TaskException
 * @Desc 任务执行异常
 * @author shuai.zuo
 * @date 2014年10月16日
 * @Version V1.0
 */
public class TaskException extends Exception {
    private static final long serialVersionUID = 1L;
    private int code = 0;
    private String message = "";

    public TaskException(int code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    public TaskException(String message) {
        super();
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
